<?php /* Template_ 2.2.4 2011/05/24 13:28:18 E:\php\www\sagapo\_DATA\template_\default\admin\anniversary\index.html 000002380 */ 
$TPL_list_1=empty($TPL_VAR["list"])||!is_array($TPL_VAR["list"])?0:count($TPL_VAR["list"]);?>
<h2 class="anniversary">
	기념일 관리
	<button type="button" class="add" onclick="move('<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/anniversary/add')">추가</button>
</h2>
<section class="default">
	<script>
		$(function() {
			$(".anni-delete").click(function(){
				if(!confirm("정말로 삭제하시겠습니까?")) return false;
			});
		});
	</script>
	<table class="table">
		<caption>
			성훈 & 게리 기념일
		</caption>
		<colgroup>
			<col class="t_chk" />
			<col />
			<col class="t_anni_solar" />
			<col class="t_anni_day" />
			<col class="t_anni_display" />
			<col class="t_anni_main" />
			<col class="t_etc" />
		</colgroup>
		<thead>
			<tr>
				<th scope="col"><input type="checkbox" name="chk[]" /></th>
				<th scope="col">기념일명</th>
				<th scope="col">양/음력</th>
				<th scope="col">기념일</th>
				<th scope="col">계산방법</th>
				<th scope="col">메인표시</th>
				<th scope="col">비고</th>
			</tr>
		</thead>
		<tbody>
<?php if($TPL_VAR["list"]){?>
<?php if($TPL_list_1){foreach($TPL_VAR["list"] as $TPL_V1){?>
			<tr>
				<td class="txt_center"><input type="checkbox" name="chk[]" /></td>
				<td><a href="view/<?php echo $TPL_V1->ay_seq?>"><?php echo $TPL_V1->ay_name?></a></td>
				<td class="txt_center"><?php echo $TPL_V1->solar?></td>
				<td class="txt_center"><?php echo $TPL_V1->date?></td>
				<td><?php echo $TPL_V1->display?></td>
				<td class="txt_center"><?php echo $TPL_V1->main?></td>
				<td class="txt_center">
					<a href="modify/<?php echo $TPL_V1->ay_seq?>">
						<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/icons/pencil.png" alt="수정" />
					</a>
					&nbsp;
					<a href="doDelete/<?php echo $TPL_V1->ay_seq?>">
						<img src="<?php echo $TPL_VAR["CFG"]->PATH->IMAGE?>/icons/delete.png" alt="삭제" class="anni-delete" />
					</a>
				</td>
			</tr>
<?php }}?>
<?php }else{?>
			<tr>
				<td colspan="7" class="txt_center no_data">
					등록된 기념일이 없습니다. <a href="add" class="icon-add-btn">추가</a>
				</td>
			</tr>
<?php }?>
		</tbody>
	</table>
</section>